package com.tj.collection.db.domain;


import com.tj.collection.db.enums.AdminStatusEnum;
import com.tj.collection.db.enums.AdminTypeEnum;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: sm
 * Date: 2017/3/11
 * Time: 上午11:39
 */
public class AdminAndRole {
    private Long id;

    private String account;

    private String password;

    private String mobile;

    private String name;

    private String phone;

    private String productType;

    private AdminStatusEnum adminStatusEnum;

    private AdminTypeEnum adminTypeEnum;

    private List<Role> roles = new ArrayList<>();

    public AdminAndRole() {
    }

    public AdminAndRole(String account, String password) {
        this.account = account;
        this.password = password;
    }

    public AdminAndRole(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public Long getId() {
        return id;
    }

    public AdminAndRole setId(Long id) {
        this.id = id;
        return this;
    }

    public String getAccount() {
        return account;
    }

    public AdminAndRole setAccount(String account) {
        this.account = account;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public AdminAndRole setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getMobile() {
        return mobile;
    }

    public AdminAndRole setMobile(String mobile) {
        this.mobile = mobile;
        return this;
    }

    public String getName() {
        return name;
    }

    public AdminAndRole setName(String name) {
        this.name = name;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public AdminAndRole setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getProductType() {
        return productType;
    }

    public AdminAndRole setProductType(String productType) {
        this.productType = productType;
        return this;
    }

    public AdminTypeEnum getAdminTypeEnum() {
        return adminTypeEnum;
    }

    public AdminAndRole setAdminTypeEnum(AdminTypeEnum adminTypeEnum) {
        this.adminTypeEnum = adminTypeEnum;
        return this;
    }

    public AdminStatusEnum getAdminStatusEnum() {
        return adminStatusEnum;
    }

    public AdminAndRole setAdminStatusEnum(AdminStatusEnum adminStatusEnum) {
        this.adminStatusEnum = adminStatusEnum;
        return this;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public AdminAndRole setRoles(List<Role> roles) {
        this.roles = roles;
        return this;
    }
}
